﻿@model MySite2.Models.IndexModel
@{
    ViewBag.Title = "Mihai Moldovan";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<link href="/Content/nivo-slider.css" rel="stylesheet" type="text/css" />
<link href="/Content/slider-style.css" rel="stylesheet" type="text/css" />
<script src="/Scripts/jquery.nivo.slider.pack.js" type="text/javascript"></script>

@*<script src="/Scripts/jquery-1.4.4-vsdoc.js" type="text/javascript"></script>*@

<script type="text/javascript">

    $(window).load(function () {
        $('#slider').nivoSlider();
    });

</script>
<div style="margin-bottom: 5px;">
    <div class="main-section" style="height: 290px;">
        @Html.Partial("_Slider")
    </div>
    <div class="section" style="height: 290px;">
        <div class="section-header-full">
            Contact
        </div>
        <div>
            <table>
                <tr>
                    <td valign="top">
                        @*    <img alt="logo" src="/Images/me_small.jpg" />   *@
                    </td>
                    <td valign="top">
                        @Html.Partial("_Bio")
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<div>
    
    @Html.Partial("_Books")


    <div class="section">
        <div class="section-header">
            Blog posts
        </div>
        <div style="padding: 5px;">
            @foreach (var bp in Model.BlogPosts)
            {
                <div style="padding-bottom: 5px;">
                    <span style="color: #0389e6">@bp.Date.ToString("dd-MM-yyyy")</span> <a href="@bp.URL" target="_blank"><span>@bp.Title</span></a>
                </div>
            }
        </div>
    </div>
    <div class="section">
        <div class="section-header">
            Twitter
        </div>
        <div style="padding: 5px; height: 194px; overflow: hidden;">
            @foreach (var tw in Model.TwitterMessages)
            {
                <div style="padding-bottom: 5px;">
                    <span style="color: #0389e6">@tw.Date.ToString("dd-MM-yyyy")</span> <span>@tw.ShortMessage</span>
                </div>
                
            }
        </div>
        <div style="color: #e89500; padding: 3px; font-weight: bold;">
            more...</div>
    </div>
</div>
<div style="margin-top: 5px;">
    <div class="section" style="width: 475px;">
        <div class="section-header">
            Recent check-ins
        </div>
        <div>
        </div>
    </div>
    <div class="section" style="width: 475px;">
        <div class="section-header">
            Bugs Tracker
        </div>
        <div>
        </div>
    </div>
</div>
